from mod_python import apache
import MySQLdb
import cgi
import cgitb;cgitb.enable()
def handler(req):
    req.content_type = 'text/plain'
    req.write("Hello World!")
    req.write(req.filename)
    
##    form = cgi.FieldStorage()
    
##    if not (form.has_key("name") and form.has_key("addr")):
##        print "<H1>Error</H1>"
##        print "Please fill in the name and addr fields."
##        return
##    
##    print "<p>name:", form["name"].value
##    print "<p>addr:", form["addr"].value
##    
    return apache.OK